package fanfou4j.type;

import java.io.Serializable;

import fanfou4j.org.json.JSONObject;

public class Photo implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -5387985598576568243L;
	private String imageurl;
	private String thumburl;
	private String largeurl;

	public Photo(JSONObject json) throws Exception {
		init(json);
	}

	private void init(JSONObject json) throws Exception {
		if (json != null) {
			imageurl = json.getString("imageurl");
			thumburl = json.getString("thumburl");
			largeurl = json.getString("largeurl");
		}
	}

	public String getImageurl() {
		return imageurl;
	}

	public String getThumburl() {
		return thumburl;
	}

	public String getLargeurl() {
		return largeurl;
	}

	@Override
	public String toString() {
		return "Photo [imageurl=" + imageurl + ", thumburl=" + thumburl
				+ ", largeurl=" + largeurl + "]";
	}
	

}
